namespace com
{
    export class RegisterProto extends BaseProto
    {
         constructor()
         {
            super();
            this.head_name = HeadName.login;
            this.body_name = LoginBody.register;
            this.body = new RegisterProtoRegister();
         }
         public body:RegisterProtoRegister;
    }
    
    //这个结构和数据库存储的结构相同
    export class RegisterProtoRegister
    {
        public acc:string;
        public pwd:string;
        public email:string;
        public firstName:string;
        public lastName:string;
        /**帐号权限等级 */
        public lv:number;
    }
}
